From beaea8bfc955f6572703db8f781564ac3492d8ef Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 31 Aug 2004 20:46:41 +0000 Subject: [PATCH] Can't use VLA's in C89. --- gpsbabel/gpilots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/gpilots.c b/gpsbabel/gpilots.c index 8847a81d6..27824e5e6 100644 --- a/gpsbabel/gpilots.c +++ b/gpsbabel/gpilots.c @@ -74,7 +74,7 @@ typedef struct /* size */ float dist; /* proximity distance in meters 4 */ char state[2]; /* state 2 */ char cc[2]; /* country code 2 */ - char varlenstrs[]; /* start of variable length strings */ + char varlenstrs[1]; /* start of variable length strings */ /* G_char ident[]; variable length string 1-51 */ /* G_char comment[]; waypoint user comment 1-51 */ /* G_char facility[]; facility name 1-31 */ -- 2.30.2